package com.biz.primus.ms.geo.dao.po;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 地区
 *
 * @author defei
 */
@Data
@Entity
@Table(name = "geo_district", indexes = {@Index(columnList = "cityId"), @Index(columnList = "provinceId")})
public class District extends AbstractAreaWithCode {

    private Integer cityId;

    private Integer provinceId;

    public District(Integer id) {
        this.setId(id);
    }

    public District() {
    }

}
